package top.mczhengyi.xyblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@TableName("b_reply")
@Data
public class Reply {
    @TableId(type = IdType.AUTO)
    private int id;

    private int target;

    private Blog blog;

    private int replyId;

    private Reply reply;

    private int layer;

    private String content;

    private String username;

    private String email;

    private String avatar;

    private boolean anonymous;

    private boolean visible;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
}
